package com.group.product.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.group.commons.entity.Product;
import com.group.product.dao.ProductDao;
import com.group.product.service.ProductService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author :spj
 * @date:2022/6/6
 * @description: 药品服务
 */
@Service
public class ProductServiceImpl implements ProductService {
    @Resource
    ProductDao productDao;

    @Override
    public Integer addProduct(Product product) {
        return productDao.insert(product);
    }

    @Override
    public List<Product> selectAllProduct(IPage<Product> page, int id, Product product) {
        return productDao.selectAllProduct(page,id,product);
    }


}
